package com.example.pceb.controller;

import com.example.pceb.Tencent.LiveAddressGenerator;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
//@CrossOrigin(origins = "*")
@RequestMapping("/api/live")
public class LiveController {

    @GetMapping("/create")
    public Map<String, String> createLiveRoom(@RequestParam String roomId) {
        return LiveAddressGenerator.generate(roomId);
    }
}
